GtkIconPaintable: Always recolor when snapshotting.
authorAlexander Larsson <alexl@redhat.com>
Wed, 5 Feb 2020 08:49:23 +0000 (09:49 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Feb 2020 08:38:25 +0000 (09:38 +0100)
commit021aaef824283644a02938e04d4c1958cdb0a389
treec59f74834924f3f3cd8e740ab5e7e09db34a2430
parentc691399a80af43cdbbb71aa1ac00a2678640b9d1
GtkIconPaintable: Always recolor when snapshotting.

It never makes sense to paint a texture that needs recoloring. If
you call the regular snapshot on a symbolic texture we just use the
default recoloring colors.

To support this we also change gtk_css_style_snapshot_icon_paintable()
to call gtk_icon_paintable_snapshot_with_colors() for IconPaintables
so that we get the correct colors, and we make it not emit the color
matrix.

Since we now rely on the icon to do the recoloring we also drop the
recolor argument in gtk_icon_paintable_snapshot_with_colors() as its
not needed anymore.
gtk/gtkiconhelper.c
gtk/gtkicontheme.c
gtk/gtkrender.c
gtk/gtkrendericon.c
gtk/gtkrendericonprivate.h